
<html>
<!doctype html>
<head><meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!--<script type="application/javascript" src="jquery-1.4.2.min.js" -->

<script type="text/javascript">
counter = -1;

//hne_dev Get the parameter from URL
function gup( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}

//hnv_dev if pass parameter bookmarklet, then load the page once
function autoSubmit(){
    //alert(gup("q"));
	  //resolve the first time submit form issue
	  if (gup("bookmarklet") == 1)
		  document.forms["cse-search-box"].submit();		  
}

function radioSubmit() {
     document.forms["cse-search-box"].submit();
}

</script>

</head>

<body onLoad="javascript:autoSubmit()">
<div id="container">
<div id="cse_search_keyword" align="center">
<form action="" id="cse-search-box" > 
  <div>
    <!-- 
    <input type="hidden" name="cx" value="014932739113638587953:ns6qa413pr4" /> 
    -->
    <input type="hidden" name="cof" value="FORID:10" />
    <input type="hidden" name="ie" value="UTF-8" />
    <input type="hidden" name="bookmarklet" value="0" /> <!--reset it to 0 -->
    <input type="text" name="q" size="146" />&nbsp;
    <input  size="100%" type="submit" name="sa" value="搜索" /> 
    <br/>

    <input type="radio" name="cx" value="014932739113638587953:wtxib-cqkvi" id="cx_zhidao"  onClick="radioSubmit();" checked>
    Zhidao
    <input type="radio" name="cx" value="014932739113638587953:ns6qa413pr4" id="cx_wiki"  onClick="radioSubmit();">
    Wiki 
    </div>
</form>
</div>
<hr>
<script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=zh-Hans"></script>
 
 
    <div id="cse-search-results" align= center>
    <script type="text/javascript">
      var googleSearchIframeName = "cse-search-results";
      var googleSearchFormName = "cse-search-box";
      var googleSearchFrameWidth = 600;
      var googleSearchDomain = "www.google.com";
      var googleSearchPath = "/cse";
    </script>
    <script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
    </div>
</div>
</body>
</html> 
